package com.dai.zhenfujin.issue.activity.Vehicle;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.TextView;

import com.dai.zhenfujin.R;

/**
 * 发货新车
 */
public class NewCarActivity extends AppCompatActivity {

    private EditText etName;
    private ImageView ivProduct_picture;
    private EditText etVehicle_brand;
    private EditText etVehicle_color;
    private EditText etPrice;
    private EditText etDisplacement;
    private EditText etGearbox;
    private EditText etEnergy_types;
    private EditText etEngine;
    private EditText etMaximum_power;
    private EditText etMaximum_torque;
    private EditText etBbody_structure;
    private EditText etQuality_guarantee;
    private EditText etRank;
    private ImageView ivDetail;

    private TextView tvTitle;
    private ImageView ivTitle;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_new_car);
        initView();
    }

    private void initView() {


        etName = (EditText) findViewById(R.id.issue_new_car_et_name);//产品名称
        ivProduct_picture = (ImageView) findViewById(R.id.issue_new_car_iv_product_picture);//产品图
        etVehicle_brand = (EditText) findViewById(R.id.issue_new_car_et_vehicle_brand);//车辆品牌
        etVehicle_color = (EditText) findViewById(R.id.issue_new_car_et_vehicle_color);//车辆颜色
        etPrice = (EditText) findViewById(R.id.issue_new_car_et_price);//价格
        etDisplacement = (EditText) findViewById(R.id.issue_new_car_et_displacement);//排量
        etGearbox = (EditText) findViewById(R.id.issue_new_car_et_gearbox);//变速箱
        etEnergy_types = (EditText) findViewById(R.id.issue_new_car_et_energy_types);//能源类型
        etEngine = (EditText) findViewById(R.id.issue_new_car_et_engine);//发动机
        etMaximum_power = (EditText) findViewById(R.id.issue_new_car_et_maximum_power);//最大功率
        etMaximum_torque = (EditText) findViewById(R.id.issue_new_car_et_maximum_torque);//最大扭矩
        etBbody_structure = (EditText) findViewById(R.id.issue_new_car_et__body_structure);//车身结构
        etQuality_guarantee = (EditText) findViewById(R.id.issue_new_car_et_quality_guarantee);//整车质保
        etRank = (EditText) findViewById(R.id.issue_new_car_et_rank);//级别
        ivDetail = (ImageView) findViewById(R.id.issue_new_car_iv_detail);//车况细节

        tvTitle = (TextView)findViewById(R.id.title_textview);
        ivTitle = (ImageView) findViewById(R.id.title_imageview);

        tvTitle.setText("发布产品");
        ivTitle.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });



    }

}

